package com.lichongbing.repository;

import com.lichongbing.model.Message;

import java.util.List;

/**
 * @author lichongbing
 * @email 873610008@qq.com
 * @date 2020/01/02 13:14
 * com.lichongbing.repository
 */
public interface MessageRepository {
    List<Message> findAll();

    Message save(Message message);

    Message update(Message message);

    Message updateText(Message message);

    Message findMessage(Long id);

    void deleteMessage(Long id);
}
